package com.store.web.security;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;
import com.ross.web.domain.Users;

public class LogOutAction extends ActionSupport {
	
	HttpServletRequest request;
	Users userAccess;
	public String doLogOutAction(){
		request = ServletActionContext.getRequest();
		userAccess = null;
		request.getSession().invalidate();
		addActionMessage(getText("logout.success"));
		return SUCCESS;
	}
	public Users getUserAccess() {
		return userAccess;
	}
	public void setUserAccess(Users userAccess) {
		this.userAccess = userAccess;
	}
	
	

}
